package com.zhangh.summer.admin.support.lock;


import java.util.concurrent.TimeUnit;


public interface DistributedLocker {

    void lock(String lockKey);

    void lock(String lockKey, int timeout);

    void lock(String lockKey, TimeUnit unit, int timeout);

    boolean tryLock(String lockKey, TimeUnit unit, int waitTime, int leaseTime);

    void unlock(String lockKey);

}
